//
//  aboutUsVC.m
//  UIScrollView的快速使用
//
//  Created by hongfei tam on 2018/12/23.
//  Copyright © 2018 YQ05. All rights reserved.
//

#import "aboutUsVC.h"

@interface aboutUsVC ()

@end

@implementation aboutUsVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor colorWithRed:0.9 green:0.9 blue:0.9 alpha:1.0];
    
    [self imgV];  //显示图片
    [self textlabel]; //文章
}


-(void) imgV{
    //  imageNamed:把一张本地图片读取进来
    UIImage *image1 = [UIImage imageNamed:@"1.jpg"];
    UIImageView *imageview = [[UIImageView alloc]initWithFrame:CGRectMake(50, 100, 300, 200)];
    imageview.image = image1;
    //UIImageView *imageview = [[UIImageView alloc]initWithImage:image1];
    [self.view addSubview:imageview];
}

-(void) textlabel{
    //  2 字体
    UILabel *label2 = [[UILabel alloc]initWithFrame:CGRectMake(30, 300, 300, 300)];
    label2.backgroundColor = [UIColor grayColor];// 背景色
    label2.text = @"www.imooc.com你好labelwww.imooc.com你好labelwww.imooc.com你好labelwww.imooc.com你好labelwww.imooc.com你好labelwww.imooc.com你好labelwww.imooc.com你好labelwww.imooc.com你好labelwww.imooc.com你好labelwww.imooc.com你好labelwww.imooc.com你好labelwww.imooc.com你好labelwww.imooc.com你好labelwww.imooc.com你好label";// 内容
    label2.numberOfLines = 0;  //0 不定行
    label2.lineBreakMode = NSLineBreakByTruncatingMiddle;
    label2.textColor = [UIColor blueColor]; //内容颜色
    //  属性：字体 font 类名＋systemFontOfSize ＋ 字体大小编号
    label2.font = [UIFont systemFontOfSize:12.0];
    [self.view addSubview:label2];
}




/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
